using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Boss : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {

    }

    // Update is called once per frame
    void Update()
    {

    }
    void OnDestroy()
    {
        //获取manager脚本
        GameObject manager = GameObject.Find("manager");
        manager managerScript = manager.GetComponent<manager>();
        //将isEnd设置为true
        managerScript.isEnd = true;
    }
}
